<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: Nikita.Brazhnikov
  Date: 10/1/12
  Time: 1:06 PM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rf="http://richfaces.org/rich">

<h:head>
    <title>Registration</title>
    <h:outputStylesheet library="css" name="basic_design.css" />
</h:head>
<h:body>
    <ui:decorate template="/templates/master_page_default.xhtml">
        <rf:panel bodyClass="info_panel" rendered="#{user_reg.infoMessage != null}">
            <p class="message">
                #{user_reg.infoMessage}
            </p>
        </rf:panel>
        <h:form prependId="false">
            <div class="form_panel" id="registration_panel">
                <div class="form_field">
                    <p><span class="form_field_label">User name</span></p>
                    <h:inputText value="#{user_reg.username}" id="username_f" class="form_field_text" size="45"/>
                </div>
                <div class="form_field">
                    <p><span class="form_field_label">Password</span></p>
                    <h:inputSecret value="#{user_reg.password}" id="password_f" class="form_field_text" size="20"/>
                </div>
                <div class="form_field">
                    <p><span class="form_field_label">Email</span></p>
                    <h:inputText value="#{user_reg.email}" id="email_f" class="form_field_text" size="45"/>
                </div>
                <h:commandButton action="#{user_reg.register}" class="form_submit" value="Register new" />
            </div>
        </h:form>
    </ui:decorate>

</h:body>

</html>